﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="gestionClient.aspx.vb" Inherits="Fruiterie_Atwater.gestionClient" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../layout/css/styles.css" rel="stylesheet" type="text/css" />
    <title>Administration des clients</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="Fruiterie_Atwater.dbEpicerieDataContext" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" EntityTypeName="" TableName="clients">
    </asp:LinqDataSource>
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="noClient" 
        DataSourceID="LinqDataSource1" InsertItemPosition="LastItem">
        <AlternatingItemTemplate>
            <tr style="background-color:#FFF8DC;">
                <td>
                    <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                        Text="Delete" />
                    <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
                </td>
               
                <td>
                    <asp:Label ID="nomClientLabel" runat="server" 
                        Text='<%# Eval("nomClient") %>' />
                </td>
                <td>
                    <asp:Label ID="prenomClientLabel" runat="server" 
                        Text='<%# Eval("prenomClient") %>' />
                </td>
                <td>
                    <asp:Label ID="noCiviqueClientLabel" runat="server" 
                        Text='<%# Eval("noCiviqueClient") %>' />
                </td>
                <td>
                    <asp:Label ID="rueClientLabel" runat="server" 
                        Text='<%# Eval("rueClient") %>' />
                </td>
                <td>
                    <asp:Label ID="codePostalClientLabel" runat="server" 
                        Text='<%# Eval("codePostalClient") %>' />
                </td>
                <td>
                    <asp:Label ID="villeClientLabel" runat="server" 
                        Text='<%# Eval("villeClient") %>' />
                </td>
                <td>
                    <asp:Label ID="noCarteCreditLabel" runat="server" 
                        Text='<%# Eval("noCarteCredit") %>' />
                </td>
                <td>
                    <asp:Label ID="telephoneClientLabel" runat="server" 
                        Text='<%# Eval("telephoneClient") %>' />
                </td>
                <td>
                    <asp:Label ID="courrielClientLabel" runat="server" 
                        Text='<%# Eval("courrielClient") %>' />
                </td>
                <td>
                    <asp:Label ID="passwordClientLabel" runat="server" 
                        Text='<%# Eval("passwordClient") %>' />
                </td>
                
                <td>
                    <asp:Label ID="niveauAccessLabel" runat="server" 
                        Text='<%# Eval("niveauAccess") %>' />
                </td>
                
                
            </tr>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <tr style="background-color:#008A8C;color: #FFFFFF;">
                <td>
                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                        Text="Update" />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Cancel" />
                </td>
                
                <td>
                    <asp:TextBox ID="nomClientTextBox" runat="server" 
                        Text='<%# Bind("nomClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="prenomClientTextBox" runat="server" 
                        Text='<%# Bind("prenomClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="noCiviqueClientTextBox" runat="server" 
                        Text='<%# Bind("noCiviqueClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="rueClientTextBox" runat="server" 
                        Text='<%# Bind("rueClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="codePostalClientTextBox" runat="server" 
                        Text='<%# Bind("codePostalClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="villeClientTextBox" runat="server" 
                        Text='<%# Bind("villeClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="noCarteCreditTextBox" runat="server" 
                        Text='<%# Bind("noCarteCredit") %>' />
                </td>
                <td>
                    <asp:TextBox ID="telephoneClientTextBox" runat="server" 
                        Text='<%# Bind("telephoneClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="courrielClientTextBox" runat="server" 
                        Text='<%# Bind("courrielClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="passwordClientTextBox" runat="server" 
                        Text='<%# Bind("passwordClient") %>' />
                </td>
                
                <td>
                    <asp:TextBox ID="niveauAccessTextBox" runat="server" 
                        Text='<%# Bind("niveauAccess") %>' />
                </td>
                
                
            </tr>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" 
                
                style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                <tr>
                    <td>
                        No data was returned.</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <InsertItemTemplate>
            <tr style="">
                <td>
                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                        Text="Insert" />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Clear" />
                </td>
             
                <td>
                    <asp:TextBox ID="nomClientTextBox" runat="server" 
                        Text='<%# Bind("nomClient") %>' />      
                    
                </td>
                <td>
                    <asp:TextBox ID="prenomClientTextBox" runat="server" 
                        Text='<%# Bind("prenomClient") %>' />        
                     
                </td>
                <td>
                    <asp:TextBox ID="noCiviqueClientTextBox" runat="server" 
                        Text='<%# Bind("noCiviqueClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="rueClientTextBox" runat="server" 
                        Text='<%# Bind("rueClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="codePostalClientTextBox" runat="server" 
                        Text='<%# Bind("codePostalClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="villeClientTextBox" runat="server" 
                        Text='<%# Bind("villeClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="noCarteCreditTextBox" runat="server" 
                        Text='<%# Bind("noCarteCredit") %>' />
                </td>
                <td>
                    <asp:TextBox ID="telephoneClientTextBox" runat="server" 
                        Text='<%# Bind("telephoneClient") %>' />
                </td>
                <td>
                    <asp:TextBox ID="courrielClientTextBox" runat="server" 
                        Text='<%# Bind("courrielClient") %>' />
                    
                </td>
                <td>
                    <asp:TextBox ID="passwordClientTextBox" runat="server" 
                        Text='<%# Bind("passwordClient") %>' />
                   
                </td>
                
                <td>
                    <asp:TextBox ID="niveauAccessTextBox" runat="server" 
                        Text='<%# Bind("niveauAccess") %>' />
                </td>
              
            </tr>
        </InsertItemTemplate>
        <ItemTemplate>
            <tr style="background-color:#DCDCDC;color: #000000;">
                <td>
                    <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                        Text="Delete" />
                    <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
                </td>
                
                <td>
                    <asp:Label ID="nomClientLabel" runat="server" 
                        Text='<%# Eval("nomClient") %>' />
                </td>
                <td>
                    <asp:Label ID="prenomClientLabel" runat="server" 
                        Text='<%# Eval("prenomClient") %>' />
                </td>
                <td>
                    <asp:Label ID="noCiviqueClientLabel" runat="server" 
                        Text='<%# Eval("noCiviqueClient") %>' />
                </td>
                <td>
                    <asp:Label ID="rueClientLabel" runat="server" 
                        Text='<%# Eval("rueClient") %>' />
                </td>
                <td>
                    <asp:Label ID="codePostalClientLabel" runat="server" 
                        Text='<%# Eval("codePostalClient") %>' />
                </td>
                <td>
                    <asp:Label ID="villeClientLabel" runat="server" 
                        Text='<%# Eval("villeClient") %>' />
                </td>
                <td>
                    <asp:Label ID="noCarteCreditLabel" runat="server" 
                        Text='<%# Eval("noCarteCredit") %>' />
                </td>
                <td>
                    <asp:Label ID="telephoneClientLabel" runat="server" 
                        Text='<%# Eval("telephoneClient") %>' />
                </td>
                <td>
                    <asp:Label ID="courrielClientLabel" runat="server" 
                        Text='<%# Eval("courrielClient") %>' />
                </td>
                <td>
                    <asp:Label ID="passwordClientLabel" runat="server" 
                        Text='<%# Eval("passwordClient") %>' />
                </td>
               
                <td>
                    <asp:Label ID="niveauAccessLabel" runat="server" 
                        Text='<%# Eval("niveauAccess") %>' />
                </td>
                
               
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table ID="itemPlaceholderContainer" runat="server" border="1" 
                            
                            style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                            <tr runat="server" style="background-color:#DCDCDC;color: #000000;">
                                <th runat="server">
                                </th>
                                
                                <th runat="server">
                                    Nom</th>
                                <th runat="server">
                                    Prénom</th>
                                <th runat="server">
                                    Numéro de Rue</th>
                                <th runat="server">
                                    Rue</th>
                                <th runat="server">
                                    Code Postal</th>
                                <th runat="server">
                                    Ville</th>
                                <th runat="server">
                                    Numéro CC</th>
                                <th runat="server">
                                    Téléphone</th>
                                <th runat="server">
                                    Courriel</th>
                                <th runat="server">
                                    Mot de Passe</th>
                                
                                <th runat="server">
                                    Niveau Accés</th>
                            </tr>
                            <tr ID="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" 
                        
                        style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
                        <asp:DataPager ID="DataPager1" runat="server">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                    ShowLastPageButton="True" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <tr style="background-color:#008A8C;font-weight: bold;color: #FFFFFF;">
                <td>
                    <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                        Text="Delete" />
                    <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
                </td>
               
                <td>
                    <asp:Label ID="nomClientLabel" runat="server" 
                        Text='<%# Eval("nomClient") %>' />
                </td>
                <td>
                    <asp:Label ID="prenomClientLabel" runat="server" 
                        Text='<%# Eval("prenomClient") %>' />
                </td>
                <td>
                    <asp:Label ID="noCiviqueClientLabel" runat="server" 
                        Text='<%# Eval("noCiviqueClient") %>' />
                </td>
                <td>
                    <asp:Label ID="rueClientLabel" runat="server" 
                        Text='<%# Eval("rueClient") %>' />
                </td>
                <td>
                    <asp:Label ID="codePostalClientLabel" runat="server" 
                        Text='<%# Eval("codePostalClient") %>' />
                </td>
                <td>
                    <asp:Label ID="villeClientLabel" runat="server" 
                        Text='<%# Eval("villeClient") %>' />
                </td>
                <td>
                    <asp:Label ID="noCarteCreditLabel" runat="server" 
                        Text='<%# Eval("noCarteCredit") %>' />
                </td>
                <td>
                    <asp:Label ID="telephoneClientLabel" runat="server" 
                        Text='<%# Eval("telephoneClient") %>' />
                </td>
                <td>
                    <asp:Label ID="courrielClientLabel" runat="server" 
                        Text='<%# Eval("courrielClient") %>' />
                </td>
                <td>
                    <asp:Label ID="passwordClientLabel" runat="server" 
                        Text='<%# Eval("passwordClient") %>' />
                </td>
                
                <td>
                    <asp:Label ID="niveauAccessLabel" runat="server" 
                        Text='<%# Eval("niveauAccess") %>' />
                </td>
                
                
            </tr>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    </form>
</body>
</html>
